/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-07-19
 * Time: 18:57
 */
public class Main {
    public static void main(String[] args) {
        String s = "name = xiaoming&age = 12";
        String[] strings = s.split("&|=");

        for (int i = 0; i < strings.length; i++) {
            System.out.println(strings[i]);
        }
    }
}
